package oa.service;

import java.util.List;

import oa.entity.Department;
import oa.entity.Message;
import oa.exception.DaoException;

public interface MessageService {
	List<Message> selectMessages(int companyid,Integer pageNo, Integer row) throws DaoException;//根据id查询通知
	List<Message> selectMessage(int id) ;//根据id查询通知
	boolean deleteMessage(int id);//删除通知
	boolean updateMessage(Message message );//更新通知
	boolean addMessage(Message message);//添加
	int countMessage(int MessagecompId ) throws DaoException;// 获取到所有部门的数量或某公司
}
